package com.chatplus.application.event;


import java.io.Serializable;

public class GenericEvent<T> implements Serializable {
    /**
     * 业务类型
     */
    private String appBusinessCode;
    private T data;

    public GenericEvent(String appBusinessCode, T data) {
        this.appBusinessCode = appBusinessCode;
        this.data = data;
    }

    public String getAppBusinessCode() {
        return appBusinessCode;
    }

    public void setAppBusinessCode(String appBusinessCode) {
        this.appBusinessCode = appBusinessCode;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
